import React, { Component } from 'react'

export class SubCount extends Component {
  changeCount (count) {
    this.props.addClick(count)
  }
  render () {
    return (
      <div>
        <button onClick={() => this.changeCount(-1)}>-1</button>
        <button onClick={() => this.changeCount(-5)}>-5</button>
        <button onClick={() => this.changeCount(-10)}>-10</button>
      </div>
    )
  }
}

export default SubCount